package com.example.prodecttest.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.prodecttest.constant.BaseCommon;
import com.example.prodecttest.dao.EquipmentAttributeNameMapper;
import com.example.prodecttest.entity.EquipmentAttributeName;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: fan
 * @date: 2022/2/18 14:05
 * @version: 1.0
 */
@Service
public class EquipmentAttributeNameServiceImpl extends ServiceImpl<EquipmentAttributeNameMapper, EquipmentAttributeName> {

    List<EquipmentAttributeName> listEquipmentAttributeNameByEquipmentGroupId(Long groupId) {

        return list(new QueryWrapper<EquipmentAttributeName>().lambda()
                .eq(EquipmentAttributeName::getGroupId, groupId)
                .eq(EquipmentAttributeName::getIsDelete, BaseCommon.NO));

    }

}
